<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
<link type="text/css" href="/css/1pxtable.css" rel="Stylesheet" />	
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.21.custom.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.11/jquery.min.js" type="text/javascript"></script>
<style>
.addstaff{
	display:none;
	}
#scrollDiv{position:fixed;left:50px;top:10px;}
* html #scrollDiv{top:expression(eval(document.body.scrollTop));}

#scrollDiv2{position:fixed;left:790px;top:10px; width:650px; background-color:#EEEEEE; padding:10px;}
* html #scrollDiv2{ width:650px; top:expression(eval(document.body.scrollTop)); background-color:#EEEEEE; padding:10px;}
.attn{
	background-color:#FF8080;	
}

</style>
<link rel="stylesheet" href="/js/chosen/chosen.css" />

<script type="text/javascript">
function enableSubmit(){
	document.getElementById('btn_submit').disabled = false;
	}
	

$(function() {
	$("#l_date_type_2").datepicker({ dateFormat: "yy-mm-dd",minDate: 7 });
});	
</script>
</head>


<body style="font-family:Arial, Helvetica, sans-serif">

<h2>Permanent Staff Resignation / Discharge Application<br />
  <br />
  ( For all trainee staff please contact Simon, DO NOT<br />
  Use this application form
  )<br />
</h2>
<form id="form1" name="form1" method="post" action="">

<table width="600" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <td width="143">Staff Name</td>
    <td colspan="2"><select name="staff_name" data-placeholder="Staff Name" class="chzn-select" style="width:200px" id="staff_name">
      <option value=""></option>
      <?php foreach($this->stList as $k => $v) {?>
      <option value="<?=$v["id"]?>">
        <?=ucwords($v["ni"])?>
        .
        <?=chr($v["il"]+64)?> ( <?=ucwords(Model_EncryptHelper::getSslPassword($v["n"]))?> )
        </option>
      <?php } ?>
    </select></td>
  </tr>
  <tr>
    <td>Shop Name</td>
    <td colspan="2"><label for="shop_name"></label>
      <select name="shop_name" id="shop_name">
      <?php foreach($this->arrShop as $shopName){?>
        <option value="<?php echo $shopName?>"><?php echo $shopName?></option>
      <?php }?>
      </select></td>
  </tr>
  <tr>
    <td>Manager Password</td>
    <td colspan="2"><input type="password" name="password_mgr" id="password_mgr" /></td>
  </tr>
  <tr>
    <td rowspan="2"> Type</td>
    <td width="178"><input type="radio" name="l_type" id="radio" value="1" />
      <label for="l_type">Fire on the spot</label></td>
    <td width="211"><label for="l_date_type_1"></label>
      <input name="l_date_type_1" type="text" id="l_date_type_1" readonly="readonly"  value="<?php echo $this->dateToday;?>"/>
      <em>(Last day)</em></td>
  </tr>
  <tr>
    <td><input type="radio" name="l_type" id="radio2" value="2" />
      Leave with notice<br />
      (At least 7 days ahead)</td>
    <td><input type="text" name="l_date_type_2" id="l_date_type_2" value="<?php echo $this->date7days;?>" />
      <em>(Last day)</em></td>
  </tr>
  <tr>
    <td colspan="3">Reason For Resignation / Discharge</td>
    </tr>
  <tr>
    <td colspan="3"><label for="l_reason"></label>
      <textarea name="l_reason" id="l_reason" cols="80" rows="5"></textarea></td>
    </tr>
  <tr>
    <td colspan="3"><div style="border:#603 solid 1px; background-color:#FCC; color:#036; padding:10px; font-size:13px;"><b>Resignation / Discharge Procedure</b><br />
    1.Return all the company property<br />
    2.Change the pass code of the safe<br />
    3.Process Final payment &amp; Unconfirmed roster <br />
    <br /></div><br />
    <input type="checkbox" name="checkbox" id="checkbox" onclick="enableSubmit();" />
    <label for="checkbox"></label>
   <span style="font-size:13px;"> All information has been double check , there is no mistake, head office will be noticed.<br /></span>
</td>
  </tr>
  <tr>
    <td colspan="3" align="center"><br />      <input type="submit" name="btn_submit" id="btn_submit" value="Submit Application" disabled="disabled" /></td>
    </tr>
</table>

</form>

  <script src="/js/chosen/chosen.jquery.js" type="text/javascript"></script>
  <script type="text/javascript"> 
    var config = {
      '.chzn-select': {allow_single_deselect:true},
    };
    for (var selector in config) {
      $(selector).chosen(config[selector]);
    }


  </script>
</body>


  
</html>
